#include "process.h"

void process()
{
	char process[100];
	char run[4] = {'-', '\\', '|', '/'};
	memset(process, '\0', sizeof(process));

	int i = 0;
	while(i < 100)
	{
		process[i] = '-';
		printf("[%-100s][%3d%%][%c]\r", process, i+1, run[i % 4]);
		fflush(stdout);
		usleep(100000);
		++i;
	}

	printf("\n");

	return;
}
